package com.luo.gmall.sms.api;

import com.luo.gmall.common.bean.ResponseVo;
import com.luo.gmall.sms.vo.ItemSaleVo;
import com.luo.gmall.sms.vo.SmsSaleVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * @author Zoro
 * @date 2021年11月04
 */
public interface GmallSmsApi {


    /**
     * 6.根据skuId查询营销信息
     */
    @GetMapping("sms/skubounds/sales/{skuId}")
    ResponseVo<List<ItemSaleVo>> queryListSalesBySkuId(@PathVariable Long skuId);


    @PostMapping("sms/skubounds/sale")
    void saveSmsSaleVo(@RequestBody SmsSaleVo smsSaleVo);

}
